package com.aaa.dao.sys;

import com.aaa.pojo.Dept;
import com.aaa.pojo.PageSort;
import com.aaa.pojo.Userinfo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    Page findAllUser(PageSort pageSort);

    List<Map<String, Object>> findAllUserInfoByName(Map map);

    Integer addUser(Userinfo userinfo);

    List<Userinfo> findUserIdByName(String username);

    int addUserRole(@Param("userid") Integer userid, @Param("roleId") Integer roleId);

    int deleteUserById(@Param("userids") String[] userids);

    List<Dept> queryAllDept();

    int resetPassword(Userinfo userinfo);

    int updateUser(Userinfo userinfo);

    List<Userinfo> findNoSameName(Userinfo userinfo);

    int updateOneself(Userinfo userinfo);










}
